package cn.edu.zju.gis.disasterBE.sever.dao;

import cn.edu.zju.gis.disasterBE.sever.Utils.MybatisUtils;
import cn.edu.zju.gis.disasterBE.sever.entity.weatherQuery;
import cn.edu.zju.gis.disasterBE.sever.mapper.weatherMapping;
import org.apache.ibatis.session.SqlSession;

public class weatherDao {
    public static void write(weatherQuery w) {
        SqlSession session = MybatisUtils.getSqlSession();
        weatherMapping wm = session.getMapper(weatherMapping.class);
        System.out.println("++++++++++++DAO");
        System.out.println(w);

        wm.addWeather(w);
        session.close();
    }
}
